package com.kunya.product.service.active;

import com.github.pagehelper.PageInfo;
import com.kunya.common.common.ServerResponse;
import com.kunya.product.po.Question;

import java.util.List;

/**
 * @author WangGang
 * @Description: 商品提问接口
 * @date 2018/7/10 14:56
 */
public interface IQuestionService {
    /**
     * @Author WangGang
     * @Description 商品提问提交
     * @Date 14:57 2018/7/10
     **/
    ServerResponse<Question> insertQuestion(Question question,Long productId,String tablePrefix);
    /**
     * @Author WangGang
     * @Description 根据商品ID查找提问列表
     * @Date 15:28 2018/7/10
     **/
    ServerResponse<List<Question>> listByProductId(Long productId,String tablePrefix);
    /**
     * @Author WangGang
     * @Description 根据提问ID和商品ID查询商品提问详情
     * @Date 9:17 2018/7/12
     **/
    ServerResponse<Question> detailsByQuestionId(Long questionId,Long productId,String tablePrefix);
    /**
     * @Author WangGang
     * @Description 根据提问ID添加商家回复
     * @Date 14:54 2018/7/12
     **/
    ServerResponse<Question> reply(Long questionId,Question question,String tablePrefix);
}
